//
//  LoginController1.h
//  GBKHouse
//
//  Created by XMYY-19 on 2017/8/30.
//  Copyright © 2017年 XMYY-19. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum
{
    LoginTypeNone, //未登录
    LoginTypeFar,   //远程登录
    LoginTypeLocal  //本地登录
}LoginType;

@interface LoginController1 : UIViewController<UITextFieldDelegate>

/**
 logo图标
 */
@property(nonatomic,strong)UIButton *logonImage;

/**
 用户名文本框
 */
@property(nonatomic,strong)UITextField *userName;

/**
 密码文本框
 */
@property(nonatomic,strong)UITextField *userPwd;

/**
 登录按钮
 */
@property(nonatomic,strong)UIButton *loginBtn;

/**
 注册按钮
 */
@property(nonatomic,strong)UIButton *regeBtn;


/**
 忘记密码
 */
@property(nonatomic,strong)UIButton *ForgotPwdBtn;


/**
 体验模式(游客模式)
 */
@property(nonatomic,strong)UIButton *gusetBtn;


@property (nonatomic, assign)BOOL willAutoLogin;

+ (void)setLoginType:(LoginType)type;
+ (LoginType)loginType;
+ (void)setCurrentUser:(NSString *)user;
+ (NSString *)currentUser;
+ (void)setSessionID:(NSString *)sessionId;
+ (NSString *)sessionID;
+ (void)setName:(NSString*)name password:(NSString*)passwd;
+ (NSString *)userName;
+ (NSString *)passwd;

+ (void)setRememberName:(BOOL)remember;
+ (BOOL )remember;

+ (void)setAutoLogin:(BOOL)autoLogin;
+ (BOOL )autoLogin;
@end

LoginController1 *currentLoginController1;
